package com.meilai.project.entity.finance.paymentReceived;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 到款表
 * </p>
 *
 * @author xhy
 * @since 2022-12-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("account_received")
@ApiModel(value = "AccountReceived对象", description = "到款表")
public class AccountReceived extends SuperEntity {

    @ApiModelProperty(value = "到款时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate account_received_time;

    @ApiModelProperty(value = "到款金额")
    private BigDecimal account;

    @ApiModelProperty(value = "客户id")
    private Long customer_id;

    @ApiModelProperty(value = "是否确认")
    private Boolean confirm;

    @ApiModelProperty(value = "是否删除")
    private Boolean deleted;

    @ApiModelProperty(value = "分组id")
    private Long group_id;
}
